Regenerate main crate
authorFelix Krull <f_krull@gmx.de>
Wed, 28 Aug 2019 21:25:35 +0000 (23:25 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/src/auto/enums.rs
rust-bindings/rust/src/auto/mutable_tree.rs
rust-bindings/rust/src/auto/repo.rs

index 11f8b4116733444b5ac6ada00bcbc3c42a45ec23..0ae3ac645cdb7803e1be9104040256023db6bb45 100644 (file)
@@ -69,6 +69,8 @@ pub enum GpgSignatureAttr {
     UserName,
     UserEmail,
     FingerprintPrimary,
+    KeyExpTimestamp,
+    KeyExpTimestampPrimary,
     #[doc(hidden)]
     __Unknown(i32),
 }
@@ -89,6 +91,8 @@ impl fmt::Display for GpgSignatureAttr {
             GpgSignatureAttr::UserName => "UserName",
             GpgSignatureAttr::UserEmail => "UserEmail",
             GpgSignatureAttr::FingerprintPrimary => "FingerprintPrimary",
+            GpgSignatureAttr::KeyExpTimestamp => "KeyExpTimestamp",
+            GpgSignatureAttr::KeyExpTimestampPrimary => "KeyExpTimestampPrimary",
             _ => "Unknown",
         })
     }
@@ -113,6 +117,8 @@ impl ToGlib for GpgSignatureAttr {
             GpgSignatureAttr::UserName => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_USER_NAME,
             GpgSignatureAttr::UserEmail => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_USER_EMAIL,
             GpgSignatureAttr::FingerprintPrimary => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_FINGERPRINT_PRIMARY,
+            GpgSignatureAttr::KeyExpTimestamp => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP,
+            GpgSignatureAttr::KeyExpTimestampPrimary => ostree_sys::OSTREE_GPG_SIGNATURE_ATTR_KEY_EXP_TIMESTAMP_PRIMARY,
             GpgSignatureAttr::__Unknown(value) => value
         }
     }
@@ -135,6 +141,8 @@ impl FromGlib<ostree_sys::OstreeGpgSignatureAttr> for GpgSignatureAttr {
             10 => GpgSignatureAttr::UserName,
             11 => GpgSignatureAttr::UserEmail,
             12 => GpgSignatureAttr::FingerprintPrimary,
+            13 => GpgSignatureAttr::KeyExpTimestamp,
+            14 => GpgSignatureAttr::KeyExpTimestampPrimary,
             value => GpgSignatureAttr::__Unknown(value),
         }
     }
index 57acdbae3b7b3a6ba859debf24296458b787f865..dce8c5c172a9f9fc6426512118b311d10dea61b9 100644 (file)
@@ -60,7 +60,7 @@ pub trait MutableTreeExt: 'static {
 
     fn get_metadata_checksum(&self) -> Option<GString>;
 
-    //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 37 };
+    //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 };
 
     fn lookup(&self, name: &str) -> Result<(GString, MutableTree), Error>;
 
@@ -122,7 +122,7 @@ impl<O: IsA<MutableTree>> MutableTreeExt for O {
         }
     }
 
-    //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 37 } {
+    //fn get_subdirs(&self) -> /*Unknown conversion*//*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 1, id: 38 } {
     //    unsafe { TODO: call ostree_sys:ostree_mutable_tree_get_subdirs() }
     //}
 
index 75dd4a666c56ff903b6c9a61cbbe73c94427b1b2..beee244e463aee03aee84283c51d7fdb11207de1 100644 (file)
@@ -848,6 +848,14 @@ impl Repo {
         }
     }
 
+    pub fn write_archive_to_mtree_from_fd<P: IsA<MutableTree>, Q: IsA<gio::Cancellable>>(&self, fd: i32, mtree: &P, modifier: Option<&RepoCommitModifier>, autocreate_parents: bool, cancellable: Option<&Q>) -> Result<(), Error> {
+        unsafe {
+            let mut error = ptr::null_mut();
+            let _ = ostree_sys::ostree_repo_write_archive_to_mtree_from_fd(self.to_glib_none().0, fd, mtree.as_ref().to_glib_none().0, modifier.to_glib_none().0, autocreate_parents.to_glib(), cancellable.map(|p| p.as_ref()).to_glib_none().0, &mut error);
+            if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) }
+        }
+    }
+
     pub fn write_commit<P: IsA<RepoFile>, Q: IsA<gio::Cancellable>>(&self, parent: Option<&str>, subject: Option<&str>, body: Option<&str>, metadata: Option<&glib::Variant>, root: &P, cancellable: Option<&Q>) -> Result<GString, Error> {
         unsafe {
             let mut out_commit = ptr::null_mut();